namespace FutureApp.Migrations
{
    using System;
    using System.Collections.Generic;
    using System.Data.Entity.Infrastructure.Annotations;
    using System.Data.Entity.Migrations;
    
    public partial class Media : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.FutureFiles",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        Name = c.String(nullable: false, maxLength: 6),
                        FormerName = c.String(nullable: false, maxLength: 6),
                        Extesion = c.String(nullable: false, maxLength: 6),
                        Mime = c.String(maxLength: 6),
                        Path = c.String(nullable: false, maxLength: 150),
                        Size = c.Int(nullable: false),
                        Md5 = c.String(maxLength: 32),
                        Sha1 = c.String(maxLength: 40),
                        CreationTime = c.DateTime(nullable: false),
                        IsDeleted = c.Boolean(nullable: false),
                    },
                annotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_File_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.FuturePictures",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        Extesion = c.String(nullable: false, maxLength: 6),
                        Mime = c.String(maxLength: 6),
                        Path = c.String(nullable: false, maxLength: 150),
                        Size = c.Int(nullable: false),
                        Md5 = c.String(maxLength: 32),
                        Sha1 = c.String(maxLength: 40),
                        CreationTime = c.DateTime(nullable: false),
                        IsDeleted = c.Boolean(nullable: false),
                    },
                annotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_Picture_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.FutureVideos",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        Extesion = c.String(nullable: false, maxLength: 6),
                        Mime = c.String(maxLength: 6),
                        Path = c.String(nullable: false, maxLength: 150),
                        Size = c.Int(nullable: false),
                        Md5 = c.String(maxLength: 32),
                        Sha1 = c.String(maxLength: 40),
                        CreationTime = c.DateTime(nullable: false),
                        IsDeleted = c.Boolean(nullable: false),
                    },
                annotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_Video_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.FutureVoices",
                c => new
                    {
                        Id = c.Guid(nullable: false),
                        Extesion = c.String(nullable: false, maxLength: 6),
                        Mime = c.String(maxLength: 6),
                        Path = c.String(nullable: false, maxLength: 150),
                        Size = c.Int(nullable: false),
                        Md5 = c.String(maxLength: 32),
                        Sha1 = c.String(maxLength: 40),
                        CreationTime = c.DateTime(nullable: false),
                        IsDeleted = c.Boolean(nullable: false),
                    },
                annotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_Voice_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.FutureVoices",
                removedAnnotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_Voice_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                });
            DropTable("dbo.FutureVideos",
                removedAnnotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_Video_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                });
            DropTable("dbo.FuturePictures",
                removedAnnotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_Picture_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                });
            DropTable("dbo.FutureFiles",
                removedAnnotations: new Dictionary<string, object>
                {
                    { "DynamicFilter_File_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" },
                });
        }
    }
}
